package com.company.model.result;

import com.company.model.Company;
import java.io.Serializable;
import java.util.List;

/**
 * @author Tu enum@foxmail.com.
 * @since 2.1.0
 */
public class CompanySearchResult implements Serializable {

  private String keyword;
  private List<Company> companies;

  public CompanySearchResult() {
  }

  public CompanySearchResult(String keyword, List<Company> companies) {
    this.keyword = keyword;
    this.companies = companies;
  }

  public String getKeyword() {
    return keyword;
  }

  public void setKeyword(String keyword) {
    this.keyword = keyword;
  }

  public List<Company> getCompanies() {
    return companies;
  }

  public void setCompanies(List<Company> companies) {
    this.companies = companies;
  }

  @Override
  public String toString() {
    return "CompanySearchResult{" +
        "keyword='" + keyword + '\'' +
        ", companies=" + companies +
        '}';
  }
}
